export default function judgeAuthority(route) {
  const routeArr = route.pathname.split('/');
  if (routeArr[1] === 'socaccmanagesend') {
    return 'socaccmanagesend';
  }
  if (routeArr[1] === 'socaccmanagereceive') {
    return 'socaccmanagereceive';
  }
  if (routeArr[1] === 'fmmanage') {
    return 'fmmanage';
  }
  return routeArr[1];
}
